 

/**
 * Item copy of Product
 * @author Stefan
 */
public class Item {
    //Attributes
    private int serialnumber;
    private boolean rentAble;
    private String rentStatus;
    private int location;

    public Item(int serialnumber, boolean rentAble, String rentStatus, int location)
    {
        this.serialnumber = serialnumber;
        this.rentAble = rentAble;
        this.rentStatus = rentStatus;
        this.location = location;
    }

    public Item(int location)
    {
        serialnumber = 0;
        rentAble = false;
        this.location = location;
    }

    public int getSerialnumber()
    {
        return serialnumber;
    }

    public void setSerialnumber(int serialnumber)
    {
        this.serialnumber = serialnumber;
    }

    public int getLocation()
    {
        return location;
    }

    public void setLocation(int location)
    {
        this.location = location;
    }

    public boolean isRentAble()
    {
        return rentAble;
    }

    public void setRentAble(boolean rentAble)
    {
        this.rentAble = rentAble;
    }

    public String getRentStatus()
    {
        return rentStatus;
    }

    public void setRentStatus(String rentStatus)
    {
        this.rentStatus = rentStatus;
    }
}